<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>修改品牌</title>
    <style>
        body{
            /*background: url("images/bj.gif") no-repeat;*/
            background-color: #03a89e;
        }
        *{
            margin: 0;
            padding: 0;
        }


        #add-ys{
            margin: 25px auto;
            width: 450px;
            background-color: #f5deb3;
            position: relative;
        }
        .in-text{
            width: 75%;
            height: 30px;
            margin: 15px 0 0 10px;

        }
        .in-area{
            width: 75%;
            height: 95px;
            margin: 15px 0 0 10px;
            position: absolute;
            top: 150px;
        }
        .in-submit{
            width: 100%;
            height: 45px;
            margin-top: 15px;
        }
        .in-raido{

            margin: 15px 0 0 70px;
        }
        .in-spacing{
            letter-spacing:16px;

        }
        .in-spacing2{
            letter-spacing:12px;
        }
        .in-miaoshu{
            line-height: 120px;
            text-align: center;
        }
        span{
            margin: 15px 0 0 10px;
        }

    </style>
</head>
<body>
<h3 style="text-align: center;margin-top: 15px;font-size: 50px;letter-spacing: 15px;color: white">修改品牌</h3>
<form action="${ctx}/update" method="post"  id="add-ys">
    <input type="hidden" name="id" value="${brand.id}">
    <span>品牌名称：</span><input name="brandName" value="${brand.brandName}" class="in-text" placeholder="请输入品牌名称"><br>
    <span>企业名称：</span><input name="companyName" value="${brand.companyName}" class="in-text" placeholder="请输入企业名称"><br>
    <span  class="in-spacing2">排序：</span><input name="ordered" value="${brand.ordered}" class="in-text" style="margin-left: 5px" placeholder="请输入序号"><br>
    <span class="in-miaoshu">描述信息：</span><textarea rows="5" cols="20" name="description"  class="in-area" placeholder="请输入详情信息">
                ${brand.description}
</textarea><br>
    <span class="in-spacing">状态：</span>
    <c:if test="${brand.status == 0}">
        <input type="radio" name="status" value="0" checked class="in-raido">禁用
        <input type="radio" name="status" value="1" class="in-raido">启用<br>
    </c:if>
    <c:if test="${brand.status != 0}">
        <input type="radio" name="status" value="0" class="in-raido">禁用
        <input type="radio" name="status" value="1" checked class="in-raido">启用<br>
    </c:if>


    <input type="submit" value="提交" class="in-submit">
</form>
</body>
</html>